﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BeakerBrush : BaseObj
{
    public void SetScale(Vector3 p)
    {
        transform.eulerAngles = new Vector3(0, 0, -90);
        if (transform.position.x < p.x + 0.1f)
        {
            transform.position = new Vector3(p.x + 0.1f, p.y, transform.position.z);
        }
        else
        {
            transform.position = new Vector3(transform.position.x, p.y, transform.position.z);
        }
    }

    public void SetStartMove()
    {
        m_rigidbody.useGravity = false;
        m_rigidbody.isKinematic = true;
        m_collider.isTrigger = true;
    }

    public void SetStopMove()
    {
        m_rigidbody.useGravity = true;
        m_rigidbody.isKinematic = false;
        m_collider.isTrigger = false;
    }
}
